<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%
	String path =request.getContextPath();
%>
<head>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <script language="javascript" type="text/javascript">
     function goback(){
  		var url = "<%=path%>/order/goBack2OrderExeList";
		location.href = url;
  	}

     function exportData(){
 		form1.action="<%=path%>/order/exportExeOrderData?isList=N";
 		form1.submit();
 	}
     </script>
    
</head>
<body class="fullbody">
        <div class="context">
        	<div class="position">
            	<div class="tposi">&lt;当前位置： 
                    	<a href="javascript:changeMenu(1,'<%=path%>/infopub/pubmain?menuid=1');"class="linkstyle">首页</a>&nbsp;&gt;&gt;&nbsp;
                       <a href="javascript:changeMenu(3,'');" class="linkstyle">我的订单\合同</a>&nbsp;&gt;&gt;&nbsp; 
                        <span class="curposition">订单执行情况跟踪</span>
                </div>
                <div class="help">
					<a href="javascript:void(null);" onclick="doHelp('<%=request.getContextPath()%>/help/html/DDZXQKGZ.html');" class="linkstyle">帮助</a>
				</div>
            </div>
                <div class="subpage_title">
                    <div class="title_index">
                        <img src="<%=path%>/images/common/dot03.gif" alt="" border="0" />&nbsp;订单明细</div>
                </div>
                <div class="margin20"></div>
                <div class="subpage_bidlist">
                    <div>
                         <div  >
		                    <div class="title_index">
<!--							    <div class="margin20"></div>-->
							    <div class="subpage_search" >
			                        <table border="0" cellpadding="0" cellspacing="0" class="searchtable">
			                            <tr>
			                                <td valign="middle" class="w_1">采购订单号：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${orderForm12.billNo}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购公司：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text1" name="searchtext" type="text" value="${orderForm12.purCorpName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                            	<td valign="middle" class="w_1">采购部门：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="searchtext" name="searchtext" type="text" value="${orderForm12.purDeptName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">采购员：</td>
			                                <td valign="middle" class="w_2">
			                                   <input id="searchtext" name="searchtext" type="text" value="${orderForm12.purPsnName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">订单日期：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.ordeDate}" readonly="readonly" class="searchtext"/>
			                                </td>
			                                <td valign="middle" class="w_1">供应商发货地址：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.supSendAddrName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">开票供应商：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.invoiceSuppName}" readonly="readonly" class="searchtext" />
			                                </td>
			                                <td valign="middle" class="w_1">收付款协议名称：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.protocolName}" readonly="readonly" class="searchtext" />
			                                </td>
			                            </tr>
			                            <tr>
			                                <td valign="middle" class="w_1">备注：</td>
			                                <td valign="middle" class="w_2">
			                                    <input id="Text8" name="searchtext" type="text" value="${orderForm12.memo}" readonly="readonly" class="searchtext" />
			                                </td>
											<td></td>
											<td></td>
			                            </tr>
			                            <tr><td colspan="4">&nbsp;</td></tr>
			                        </table>
                    			</div>
			                    <div class="margin20"></div>
							    <div>
							        <table class="tableCss" cellpadding="0" cellspacing="0">
							            <tr class="titleTr">
							                <c:if test="${!isScmPUEnable}">
								                <th width="250px">产品名称 </th>
								                <th width="88px">数量</th>
								                <th width="150px">价格</th>
								                <th width="152px">税率</th>
								                <th width="85px">计划到货日期</th>
								                <th width="75px" class="th1">产品状态</th>
											</c:if>
							                	
							                <c:if test="${isScmPUEnable}">
								                <th width="180px">产品名称 </th>
								                <th width="90px">数量</th>
								                <th width="160px">单价</th>
								                <th width="140px">金额</th>
								                <th width="90px">计划到货日期</th>
								                <th  width="160" class="th1">累计结果</th>
							                </c:if>
							            </tr>
								        <c:if test="${orderForm12!=null && orderForm12.orderItems!=null}">
											<c:forEach items="${orderForm12.orderItems}" var="orderItemForm" varStatus="index">
												<c:if test="${orderItemForm.index%2==1}">
													<tr align="left" class="contTr-old"  >
												</c:if>
												<c:if test="${orderItemForm.index%2==0}">
													<tr align="left" class="contTr-even">
												</c:if>
													<td class="td1">
														<span class="prodName">${orderItemForm.prodName}</span><br/>
														<c:if test="${orderItemForm.module!=null && ''!=orderItemForm.module}">规格：${orderItemForm.module}<br/></c:if>
														<c:if test="${orderItemForm.type!=null && ''!=orderItemForm.type}">型号：${orderItemForm.type}<br/></c:if>
														<c:if test="${orderItemForm.batchNo!=null && ''!=orderItemForm.batchNo}">批次号：${orderItemForm.batchNo}<br/></c:if>
														<c:if test="${orderItemForm.contractNo!=null && ''!=orderItemForm.contractNo}">合同号：${orderItemForm.contractNo}<br/></c:if>
														<c:if test="${orderItemForm.ct_code!=null && ''!=orderItemForm.ct_code}">合同号：${orderItemForm.ct_code}<br/></c:if>
														<c:if test="${orderItemForm.invcode!=null && ''!=orderItemForm.invcode}">存货编码：${orderItemForm.invcode}<br/></c:if>
														<c:if test="${orderItemForm.def18!=null && ''!=orderItemForm.def18}">主机号：${orderItemForm.def18}<br/></c:if>
														<c:if test="${orderItemForm.graphid!=null && ''!=orderItemForm.graphid}">图号：${orderItemForm.graphid}<br/></c:if>
														<c:if test="${orderItemForm.def20!=null && ''!=orderItemForm.def20}">技术要求：${orderItemForm.def20}<br/></c:if>
														<c:if test="${orderItemForm.produceFactory!=null && ''!=orderItemForm.produceFactory}">生产厂商：${orderItemForm.produceFactory}<br/></c:if>
														<c:if test="${orderItemForm.qulityLevel!=null && ''!=orderItemForm.qulityLevel}">质量等级：${orderItemForm.qulityLevel}<br/></c:if>
														<c:if test="${orderItemForm.desc!=null && ''!=orderItemForm.desc}">描述：${orderItemForm.desc}</c:if>
														<c:if test="${orderItemForm.prodStatus!=null && ''!=orderItemForm.prodStatus}">
														产品状态：<c:if test="${1==orderItemForm.prodStatus}">采购</c:if>
														<c:if test="${2==orderItemForm.prodStatus}">生产</c:if>
														<c:if test="${3==orderItemForm.prodStatus}">库存</c:if>
														<c:if test="${4==orderItemForm.prodStatus}">在途</c:if>
														<c:if test="${5==orderItemForm.prodStatus}">全部发货</c:if></c:if>
													</td>
													<td class="td1"><font class="words-red-bold">${orderItemForm.orderNum}</font>${orderItemForm.measureName}&nbsp;</td>
													<td class="td1">
														含税单价：<font class="words-blue">${orderItemForm.taxPrice}</font><br/>
														折扣率：<font class="words-blue">${orderItemForm.discount}%</font><br/>
														净含税单价：<font class="words-blue">${orderItemForm.netTaxPrice}</font><br/>
														币种：<font class="words-blue">${orderItemForm.curName}</font><br/>
													</td>
													<td class="td1">
														税率：<font class="words-blue">${orderItemForm.rate}%</font><br/>
														价税合计：<font class="words-red-bold">${orderItemForm.priceTaxTotal}</font>&nbsp;
													</td>
													<td class="td1"><font class="words-blue">${orderItemForm.planArrDate}</font>&nbsp;</td>
													<c:if test="${isScmPUEnable}">
														<td class="td1">
															到货计划：<a href="<%=path%>/order/totalArrPlanNum?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}" ><font class="words-red-bold">${orderItemForm.totalArrPlanNum}</font><c:if test="${orderItemForm.totalArrPlanNum!=null && ''!=orderItemForm.totalArrPlanNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
															到货数量：<a href="<%=path%>/order/totalArrGoodsNum?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}" ><font class="words-red-bold">${orderItemForm.totalArrNum}</font><c:if test="${orderItemForm.totalArrNum!=null && ''!=orderItemForm.totalArrNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														           退货数量：<a href="<%=path%>/order/totalUnArrGoodsNum?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalArrBackNum}</font><c:if test="${orderItemForm.totalArrBackNum!=null && ''!=orderItemForm.totalArrBackNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														           入库数量：<a href="<%=path%>/order/totalStorageNum?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalStroageNum}</font><c:if test="${orderItemForm.totalStroageNum!=null && ''!=orderItemForm.totalStroageNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														           退库数量：<a href="<%=path%>/order/totalUnStorageNum?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalUnstorageNum}</font><c:if test="${orderItemForm.totalUnstorageNum!=null && ''!=orderItemForm.totalUnstorageNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														           发票数量：<a href="<%=path%>/order/totalInvoice?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalInvoiceNum}</font><c:if test="${orderItemForm.totalInvoiceNum!=null && ''!=orderItemForm.totalInvoiceNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														           结算数量：<a href="<%=path%>/order/totalBalance?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalCalNum}</font><c:if test="${orderItemForm.totalCalNum!=null && ''!=orderItemForm.totalCalNum}">${orderItemForm.main_measure_name}</c:if></a><br/>
														    结算金额：<a href="<%=path%>/order/totalBalance?pkOrder=${orderItemForm.pkItemOrder}&pkProd=${orderItemForm.pkProd}"><font class="words-red-bold">${orderItemForm.totalCalAmount}</font></a><br/>
														           付款金额：<font class="words-red-bold">${orderItemForm.totalPayAmount}</font>&nbsp;
														</td>
													 </c:if>
												</tr>
											</c:forEach>
										</c:if>
									</table>
							    </div>
							    <div class="margin20"></div>
							    <div>
							    	<form name="form1" method="post">
								        <table width="600" align="center" border="0" cellspacing="0" cellpadding="0">
								            <tr id="order_confirm" align="center">
								                <td>
								                    <input type="button" class="btnscs" value="返回" onclick="goback()" />
								                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
								                     <input type="button" class="btnscs" value="导出" onclick="exportData()" />
								                </td>
								            </tr>
								        </table>
							        </form>
							    </div>
							</div>
			                <div class="margin20"></div>
							<div class="margin8">
		                    	<table align="left">
									<tr class="title">
										<td>
											<div id="message" class="msgcolor">${system_err_msg}</div>
										</td>
									</tr>
								</table>
							</div> 
						</div>
                    </div>
                    <div class="margin8"></div>
                </div>
            </div>
        <div class="margin20"></div>
</body>
</html>
